<?php
namespace app\wx\controller;
use think\Controller;
use Util\Tool;
use think\facade\Cache;
class Admin extends Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->model = model('Weixin');
        $this->Tool= new Tool;
    }


    public function wx_group(){
//        $res = $this->model->wx_check_tags();
//        dump(json_decode($res,true));die;
        return $this->fetch();
    }

    public function wx_group_add(){
        if($_GET){
            $res = $this->model->wx_tags($_GET['name']);
            $arr = json_decode($res,true);
            $this->Tool->Tips(0,'成功添加分组');

        }
        return $this->fetch();
    }



    

}
